//
//  BoysController.m
//  WANNA
//
//  Created by lanou3g on 16/5/5.
//  Copyright © 2016年 浮夸. All rights reserved.
//

#import "BoysController.h"
#import "BoyMovementController.h"
#import "BoyFashionController.h"
#import "BoyHomePageController.h"
#import "BoyLifeController.h"
#import "BoySneakersController.h"
#import "SCNavTabBarController.h"
#import "drawerViewController.h"
#import "CK_MenuViewController.h"
#import "GirlsController.h"
#import "LatestViewController.h"
@interface BoysController ()

@end

@implementation BoysController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.title = @"男生资讯";
    
    
    [self derwer];
    [self scnvc];
    
    
}

- (void)derwer
{
  
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"菜单"] style:UIBarButtonItemStylePlain target:self action:@selector(drawerAction)];

}

- (void)scnvc
{
    BoyHomePageController *HomeVC = [[BoyHomePageController alloc]init];
    HomeVC.title = @"主页";
    
    BoyFashionController *fashionVC = [[BoyFashionController alloc]init];
    fashionVC.title = @"时尚";
    
    BoySneakersController *sneakerVC = [[BoySneakersController alloc]init];
    sneakerVC.title = @"球鞋";
    
    BoyLifeController *lifeVC =[[ BoyLifeController alloc]init];
    lifeVC.title = @"生活";
    
    BoyMovementController *moventVC =[[BoyMovementController alloc]init];
    moventVC.title = @"运动";
    
    
    SCNavTabBarController *navcTBC = [[SCNavTabBarController alloc]init];
    navcTBC.subViewControllers = @[HomeVC,fashionVC,sneakerVC,lifeVC,moventVC];
    [navcTBC addParentController:self];

}


#pragma mark - 点击菜单抽屉
- (void)drawerAction
{
    if ([CK_MenuViewController getMenuViewController].isShowing) {
        [[CK_MenuViewController getMenuViewController]hideLeftViewController];
    }else
    {
        [[CK_MenuViewController getMenuViewController]showLeftViewController];
    }
}

//
//#pragma mark - 点击菜单项的代理
//
//- (void)didClickIndex:(NSInteger)index Section:(NSInteger)section
//{
//    [self.navigationController popToRootViewControllerAnimated:NO];
//    
//    switch (index) {
//        case 0:
//        {
//            LatestViewController *latesVC = [[LatestViewController alloc]init];
//            [self.navigationController pushViewController:latesVC animated:YES];
//        }
//            break;
//        case 1:
//        {
//            
//        }
//            break;
//        case 2:
//        {
//            GirlsController *girlVC = [[GirlsController alloc]init];
//            [self.navigationController pushViewController:girlVC animated:YES];
//        }
//            break;
//        case 3:
//        {
//            
//        }
//            break;
//        case 4:
//        {
//            
//        }
//            break;
//        case 5:
//        {
//            
//        }
//            break;
//            
//        default:
//            break;
//    }
//}
//
//




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
